|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
com.sabro.jbusiness.gui.celleditors.DBCampoXXX
public class DBCampoXXX
Cria campo usado para alterar informações de campos de tipos indefinidos
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DBCampoXXX()
Inicializa o texto sem um valor pré-definido |
|
DBCampoXXX(SysFiltroCampo sysFiltroCampo)
Inicializa o texto com um valor de formatação de tabela de banco de dados Usa conexão da tabela ao qual o valor pertence |
|
DBCampoXXX(SysValor sysValor)
Inicializa o texto com um valor de formatação de tabela de banco de dados Usa conexão da tabela ao qual o valor pertence |
Method Summary | |
---|---|
void |
addCellEditorListener(javax.swing.event.CellEditorListener cellEditorListener)
Adiciona um novo listener do tipo "CellEditor" ao objeto |
void |
cancelCellEditing()
Desfaz as alterações do campo |
void |
editaCampoClear()
Edita o campo com limpeza prévia de seu conteúdo. |
void |
editaCampoCompleto()
Edita o campo em resposta ao pressionamento da tecla que comanda um pedido de edição (F2). |
void |
editaCampoLeft()
Edita o campo em resposta ao pressionamento da tecla de seta para a esquerda. |
void |
editaCampoRight()
Edita o campo em resposta ao pressionamento da tecla de seta para a direita. |
void |
editaCampoString(java.lang.String texto)
Inicia a edição do campo e coloca o texto informado no campo editado. |
void |
fireEditingCanceled()
Dispara um evento do tipo "EditingCanceled" para todos os listeners cadastrados |
void |
fireEditingStopped()
Dispara um evento do tipo "EditingStopped" para todos os listeners cadastrados |
javax.swing.event.CellEditorListener[] |
getCellEditorListeners()
Serve para obter a lista de listeners do tipo "CellEditor" existentes no objeto |
java.lang.Object |
getCellEditorValue()
|
javax.swing.JComponent |
getEditorComponent()
Fornece o componente que realmente trata as informações dentro do campo. |
java.lang.String |
getResultado()
Obtém o texto do item selecionado no campo |
SysFiltroCampo |
getSysFiltroCampo()
Obtém o valor atualizado do campo texto |
SysValor |
getSysValor()
Obtém o valor atualizado do campo texto |
java.lang.Object |
getValor()
Obtém o valor atualizado do campo |
boolean |
isCellEditable(java.util.EventObject e)
|
boolean |
isChanged()
Informa se o campo tem alteraçòes para serem gravadas |
void |
removeCellEditorListener(javax.swing.event.CellEditorListener cellEditorListener)
Remove um listener do tipo "CellEditor" ao objeto |
void |
setSysFiltroCampo(SysFiltroCampo sysFiltroCampo)
Iniciliza ou altera os parametros de funcionamento do texto |
void |
setSysValor(SysValor sysValor)
Iniciliza ou altera os parametros de funcionamento do texto |
void |
setValor(java.lang.Object valor)
Iniciliza ou altera o valor do campo |
boolean |
shouldSelectCell(java.util.EventObject e)
|
boolean |
stopCellEditing()
Verifica se é possivel interromper a edição do campo |
Methods inherited from class javax.swing.JLabel |
---|
getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getText, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setDisplayedMnemonicIndex, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabelFor, setText, setUI, setVerticalAlignment, setVerticalTextPosition, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DBCampoXXX()
public DBCampoXXX(SysValor sysValor)
public DBCampoXXX(SysFiltroCampo sysFiltroCampo)
Method Detail |
---|
public java.lang.Object getValor()
DBCampo
getValor
in interface DBCampo
public SysValor getSysValor()
getSysValor
in interface DBCampo
public SysFiltroCampo getSysFiltroCampo()
getSysFiltroCampo
in interface DBCampo
public void setValor(java.lang.Object valor)
DBCampo
setValor
in interface DBCampo
public void setSysValor(SysValor sysValor)
setSysValor
in interface DBCampo
sysValor
- public void setSysFiltroCampo(SysFiltroCampo sysFiltroCampo)
setSysFiltroCampo
in interface DBCampo
sysValor
- public java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor
public java.lang.String getResultado()
DBCampo
getResultado
in interface DBCampo
public boolean stopCellEditing()
stopCellEditing
in interface DBCampo
stopCellEditing
in interface javax.swing.CellEditor
public void cancelCellEditing()
DBCampo
cancelCellEditing
in interface DBCampo
cancelCellEditing
in interface javax.swing.CellEditor
public boolean isChanged()
DBCampo
isChanged
in interface DBCampo
public boolean isCellEditable(java.util.EventObject e)
isCellEditable
in interface javax.swing.CellEditor
public boolean shouldSelectCell(java.util.EventObject e)
shouldSelectCell
in interface javax.swing.CellEditor
public javax.swing.JComponent getEditorComponent()
DBCampo
getEditorComponent
in interface DBCampo
public void editaCampoCompleto()
DBCampo
editaCampoCompleto
in interface DBCampo
public void editaCampoClear()
DBCampo
editaCampoClear
in interface DBCampo
public void editaCampoString(java.lang.String texto)
DBCampo
editaCampoString
in interface DBCampo
public void editaCampoRight()
DBCampo
editaCampoRight
in interface DBCampo
public void editaCampoLeft()
DBCampo
editaCampoLeft
in interface DBCampo
public void addCellEditorListener(javax.swing.event.CellEditorListener cellEditorListener)
addCellEditorListener
in interface DBCampo
addCellEditorListener
in interface javax.swing.CellEditor
public void removeCellEditorListener(javax.swing.event.CellEditorListener cellEditorListener)
removeCellEditorListener
in interface DBCampo
removeCellEditorListener
in interface javax.swing.CellEditor
public javax.swing.event.CellEditorListener[] getCellEditorListeners()
public void fireEditingStopped()
fireEditingStopped
in interface DBCampo
public void fireEditingCanceled()
fireEditingCanceled
in interface DBCampo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |